#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2025/7/31 12:24
# @Author  : summer
# @Email   : 610658552@qq.com
# @File    : urls.py.py
# @Software: PyCharm
# @Desc    :
from django.urls import path
from semail.views.email import SendEmailCheck, SendEmailPush
from semail.views.email_config import EmailConfigListCreateView, EmailConfigRetrieveUpdateDestroyView

urlpatterns = [
    # 用户管理
    path('check/', SendEmailCheck.as_view(), name='send-email-check'),
    path('push/', SendEmailPush.as_view(), name='send-email-push'),

    # 邮箱配置列表查询 + 新增：GET/POST /common/email-config/
    path("config/", EmailConfigListCreateView.as_view(), name="email-config-list-create"),
    # 邮箱配置单条操作：GET(详情)/PUT(全量更新)/PATCH(部分更新)/DELETE(逻辑删除) /common/email-config/1/
    path("config/<int:pk>/", EmailConfigRetrieveUpdateDestroyView.as_view(), name="email-config-detail"),
]
